<?php declare(strict_types=1);

namespace App\Util\Rsa;


class Md5Util
{

    public static function getSign(array $data, string $key): string
    {
        unset($data["sign"]);
        ksort($data);
        $sb = "";
        foreach ($data as $k => $v) {
            $sb .= $k . "=" . $v . "&";
        }
        $sb = $sb . "key=" . $key;
        return strtoupper(md5($sb));
    }

}